package com.relatev.minecraft.TRMExample;

import com.relatev.minecraft.TRMExample.listener.TRListener;
import com.relatev.minecraft.TRMExample.listener.TRTask;
import com.relatev.minecraft.TRMobAPI.TRMobAPI;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class TRMExample extends JavaPlugin {

    public static TRMExample MainPlugin;
    public TestZombie TRTestZombie;
    public GiantBoss TRGiantBoss;
    private FeiSheep TRFeiSheep;
    private TestSkeleton TRTestSkeleton;

    @Override
    public void onEnable() {
        MainPlugin = this;
        TRTestZombie = new TestZombie();
        TRMobAPI.getAPI().getTRMobManager().loadMob(TRTestZombie);

        TRGiantBoss = new GiantBoss();
        TRMobAPI.getAPI().getTRMobManager().loadMob(TRGiantBoss);

        TRFeiSheep = new FeiSheep();
        TRMobAPI.getAPI().getTRMobManager().loadMob(TRFeiSheep);

        TRTestSkeleton = new TestSkeleton();
        TRMobAPI.getAPI().getTRMobManager().loadMob(TRTestSkeleton);
        
        System.out.println("测试BUG：" + TRFeiSheep.item);

        Bukkit.getPluginManager().registerEvents(new TRListener(), MainPlugin);
        TRTask.init();
    }
}
